﻿using LiveChartsCore;
using LiveChartsCore.SkiaSharpView;
using RS.ZhaoXi.Views.Home;
using SkiaSharp;
using System.Configuration;
using System.Data;
using System.Globalization;
using System.Windows;
using System.Windows.Markup;

namespace RS.ZhaoXi
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            LiveCharts.Configure(config => config.HasGlobalSKTypeface(SKFontManager.Default.MatchCharacter('汉')));

            FrameworkElement.LanguageProperty.OverrideMetadata(
                typeof(FrameworkElement),
                new FrameworkPropertyMetadata(
                    XmlLanguage.GetLanguage(CultureInfo.CreateSpecificCulture("zh-CN").IetfLanguageTag)));
            HomeView homeView = new HomeView();
            homeView.Show();
        }
    }

}
